package com.ebt.m.proposal_v2.bean;

import com.ebt.m.data.entity.Customer;
import com.ebt.m.proposal_v2.utils.DataUtils;

/**
 * 投保人
 *
 * @author archer.qi
 *         Created on 2017/5/12.
 */
public class ApplicantEntity {
    public String clientAccountId;  /* 客户的唯一标识，从客户列表选择必填*/
    public String name;
    public int sex; /* 0女1男*/
    public int age;
    public String birthday;
    public String phone;

    public ApplicantEntity(ApplicantEntity org){
        this.clientAccountId = org.clientAccountId;
        this.name = org.name;
        this.sex = org.sex;
        this.age = org.age;
        this.birthday = org.birthday;
        this.phone = org.phone;
    }

    public ApplicantEntity(String clientAccountId, String name, int sex, int age, String birthday, String phone) {
        this.clientAccountId = clientAccountId;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.birthday = birthday;
        this.phone = phone;
    }

    public ApplicantEntity(String clientAccountId, String name, int sex, int age, String birthday) {
        this.clientAccountId = clientAccountId;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.birthday = birthday;
    }

    public ApplicantEntity(String clientAccountId, int sex, int age, String birthday) {
        this.clientAccountId = clientAccountId;
        this.sex = sex;
        this.age = age;
        this.birthday = birthday;
    }

    public ApplicantEntity(int sex, int age, String birthday) {
        this.sex = sex;
        this.age = age;
        this.birthday = birthday;
    }

    public ApplicantEntity() {
    }

    public Customer toCustomer() {
        return DataUtils.toCustomer(this);
    }


}